|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--cnrg.itx.datax.devices.NetworkProperty
Class to implement the properties of a network device.
| Field Summary | |
(package private) double |
dVersion
The version number of the network device. |
private java.net.InetAddress |
iaAddress
The IP address of the network device. |
(package private) int |
iInitialSequenceNumber
The sequence number for the first packet that is generated by the network device. |
private int |
iPacketSize
The packet size for the network device. |
private int |
iPort
The port number for the network device. |
| Constructor Summary | |
NetworkProperty(int iInitialSequenceNumber)
Creates a network proeprty object (for transmission destination -> source) |
|
NetworkProperty(int iPort,
java.net.InetAddress iaAddress,
int iPacketSize,
double dVersion)
Creates a network property object from the parameters. |
|
NetworkProperty(int iPort,
java.net.InetAddress iaAddress,
int iPacketSize,
double dVersion,
int iInitialSequenceNumber)
Creates a network property object from the parameters. |
|
| Method Summary | |
PropertiesCollection |
findOptimal(PropertiesCollection pc)
Returns the optimal set of properties when merging the passed property with a properties collection object. |
java.net.InetAddress |
getAddress()
Gets the IP Address of the network device. |
int |
getInitialSequenceNumber()
Gets the initial sequence number. |
int |
getPacketSize()
Gets the data transmission packet size in bytes. |
int |
getPort()
Gets the port the device is bound on. |
double |
getVersion()
Gets the data encoding version. |
PropertiesCollection |
merge(PropertiesCollection pc)
Finds intersection of compatible properies properties. |
java.lang.String |
toString()
Tranforms this class into String format. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private int iPort
private java.net.InetAddress iaAddress
private int iPacketSize
int iInitialSequenceNumber
double dVersion
| Constructor Detail |
public NetworkProperty(int iPort,
java.net.InetAddress iaAddress,
int iPacketSize,
double dVersion)
iPort - the port the device is listening oniaAddress - the IP Address of the deviceiPacketSize - the dataTransmission packet sizedVersion - the data-encoding version.
public NetworkProperty(int iPort,
java.net.InetAddress iaAddress,
int iPacketSize,
double dVersion,
int iInitialSequenceNumber)
iPort - the port the device is listening oniaAddress - the IP Address of the deviceiPacketSize - the dataTransmission packet sizedVersion - the data-encoding version.iInitialSequenceNumber - the initial sequence number of the RTP packetspublic NetworkProperty(int iInitialSequenceNumber)
iInitialSequenceNumber - the first sequence number that the receiver should expect| Method Detail |
public int getPort()
public java.net.InetAddress getAddress()
public int getPacketSize()
public double getVersion()
public int getInitialSequenceNumber()
public PropertiesCollection merge(PropertiesCollection pc)
throws DataException
pc - the collection of properties to mergepublic PropertiesCollection findOptimal(PropertiesCollection pc)
pc - the PropertiesCollection object to find the optimal properties withpublic java.lang.String toString()
String format.String depiction of NetworkProperty
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||